$.parser.onComplete = function () {
    $(".jr-body").css("visibility", "visible");
    $(".jr-body").css("background", "#eff0f4");
}
$(function () {

});

function uiLink(value, row, index) {
    var f = "{}";
    var val = "";
    try {
        f = "row." + this.field;
        val = eval(f);
    } catch (err) {
        val = "";
    }
    val = val || "";
    return "<a class='jr-grid-link' title='" + val
        + "' href='javascript:void(0);' onclick='jrGridLink(this,\""
        + (row.id || "") + "\");'>" + val + "</a>";
}

function jrGridLink(o, id) {
    var url = $(o).parents("div.datagrid").find(".jr-add").attr("url");
    url += "&id=" + id;
    win(url);
}

function uiParam(value, row, index) {
    return getParamJson(value);
}